home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-01-16 | 1.6 KB | 68 lines | [TEXT/MMCC] |
- /* mmModelessDialogObject */
- /* Copyright © 1994 George R. Cossey */
-
- /* File name: mmModelessDialogObject
- Function: Basic modeless dialog object
-
- History: 1/16/94 Original by George Cossey
-
- */
-
- #include "mmCommonMM_Demo.h" /* Common */
- #include "CommonMM_Demo.h" /* Common */
-
-
- /* ======================================================= */
- /* ======================================================= */
-
- void CmmModelessDialog::Init()
- {
-
- inherited::Init();
-
- this->theWindow = nil;
- this->ExitDialog = false;
- /* Expected to be overridden by the window code */
- }
-
- /* ======================================================= */
-
- /* Routine: Moved */
- /* Purpose: We were moved, possibly to another screen and screen depth */
-
- void CmmModelessDialog::Moved(Rect *OldRect,WindowPtr theWindow)/* Moved this window */
- {
- WindowPtr SavePort; /* Place to save the last port */
-
-
- if (this->theWindow == theWindow) /* Only do if the window is us */
- {
- GetPort(&SavePort); /* Save the current port */
- SetPort(theWindow); /* Set the port to my window */
-
-
- SetPort(SavePort); /* Restore the old port */
- }
- }
-
- /* ======================================================= */
-
- void CmmModelessDialog::OpenExtras()
- {
- }
-
- /* ======================================================= */
-
- void CmmModelessDialog::UpdateExtras()
- {
- }
-
- /* ======================================================= */
-
- void CmmModelessDialog::FilterTheHit(short *itemHit,EventRecord *myEvent)
- {
- }
-
- /* ======================================================= */
- /* ======================================================= */
-